
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
      #agencylist tbody tr:nth-child(odd){background:#f7f3f7 }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">经销商列表</h2>
    </div>
    <!-- 标题 -->
    <div>
     <form action="#" method="post" id="form_check"  class="form-inline">
      <input type="hidden" value='{$page}' name="page" id="page-go"/>
                      <input type="hidden" value='{$list}' name="list" id="list-go"/>
       <table class="row-margin-top tab-content table-bordered table" border="1" style="margin:0">
          <tr>
      		<td style="min-width: 120px;width: 120px"><label for="" class="form-label">分区</label></td>
            <td><input type="text" class="form-control" name="fenqu" value="{$data.fenqu}"></td>
       		<td style="min-width: 120px;width: 120px"><label for="" class="form-label">省份</label></td>
           <td><input type="text" class="form-control" name="sheng" value="{$data.sheng}"></td>
          <td style="min-width: 120px;width: 120px"><label for="" class="form-label">城市</label></td>
           <td><input type="text" class="form-control" name="shi" value="{$data.shi}"></td>
   		 </tr>
   		   <tr>
           <td style="min-width: 120px;width: 120px"><label for="" class="form-label">城市负责人</label></td>
           <td><input type="text" class="form-control" name="shihead" value="{$data.shihead}"></td>
          <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商编号</label></td>
            <td><input type="text" class="form-control" name="sn" value="{$data.sn}"></td>
          <td style="min-width: 120px;width: 120px" ><label for="" class="form-label">经销商</label></td>
           <td><input type="text" class="form-control" name="title" value="{$data.title}"></td>
       </tr>
          <tr>
           <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商直营</label></td>
           <td>
            <select name="direct" id="" class="form-control select">
              <option value="0" {if $data.direct==0} selected {/if}>请选择</option>
              <option value="1" {if $data.direct==1} selected {/if}>是</option>
              <option value="2" {if $data.direct==2} selected {/if}>否</option>
            </select>
           </td>
          <td style="min-width: 120px;width: 120px"><label for="" class="form-label">分区负责人</label></td>
            <td><input type="text" class="form-control" name="fenquhead" value="{$data.fenquhead}"></td>
          <td style="min-width: 120px;width: 120px"><label for="" class="form-label">省份负责人</label></td>
           <td><input type="text" class="form-control" name="shenghead" value="{$data.shenghead}"></td>
       </tr>
     
    	<tr>
             <td class="text-center" colspan="6">
                <button class="btn btn-sm btn-info query" type="button" id="check">查询</button>
                    <button class="btn btn-sm btn-info emptyIf" type="button" id="clear_check">清空查询条件</button>
            </td>
        </tr>
      </table>
     <table class="table table-bordered table-hover text-center bud_hei" id="agencylist">
          <tr class="info">
            <th class="text-center">No.</th>
            <th class="text-center">销售分区</th>
            <th class="text-center">省份</th>
            <th class="text-center">城市</th>
            <th class="text-center">分区负责人</th>
            <th class="text-center">省份负责人</th>
            <th class="text-center">城市负责人</th>
            <th class="text-center">业务人员</th>
            <th class="text-center">业务联系人</th>
            <th class="text-center">经销商编号</th>
            <th class="text-center">经销商</th>
          </tr>
          <tbody style="border:0">
          {volist name="apply" id="vo" key="k"}
            <tr>
              <td>{$k}</td>
              <td>{$vo.fenqu}</td>
              <td>{$vo.sheng}</td>
              <td>{$vo.shi}</td>
              <td>{$vo.fenquhead}</td>
              <td>{$vo.shenghead}</td>
              <td>{$vo.shihead}</td>
              <td>{volist name="$vo.yewu" id="ye"}{$ye}<br/>{/volist}</td>
              <td>{$vo.bs_contact}</td>
              <td>{$vo.sn}</td>
              <td class="text-left"><a href="javascript:;">{$vo.title}</a></td>
            </tr>
            {/volist}
              
          </tbody>
      </table>
       <h5 class="text-center">
            总共有{$sum}条记录，第{$page}/{$maxpage}页，当前页：<input id="page" type="text" style="width: 70px;" value="{$page}"  /><span id="gopage">GO</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp; 每页显示
           <select id="pagesize">
                        <option value='20' {if condition="$list eq 20"}selected{/if}>20条</option>
                        <option value='40'{if condition="$list eq 40"}selected{/if}>40条</option>
                        <option value='50'{if condition="$list eq 50"}selected{/if}>50条</option>

            </select>
        </h5>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
    <script src="__STATIC__/layout/js/common.js"></script>
      <script>
      //查询
       $("#pagesize").change(function(){
            $("#page-go").val(1);
            $("#list-go").val($(this).val());
            document.getElementById("form_check").submit();
        })
        $("#gopage").click(function(){
             $("#page-go").val($("#page").val());
              document.getElementById("form_check").submit();
        })
        $("#page").keyup(function(){

            if(isNaN(parseInt($(this).val()))){
                $(this).val(1);
            }else{
                $(this).val(parseInt($(this).val()));
            }
            
        })
        $("#fistpage").click(function(){
              $("#page-go").val(1);
             document.getElementById("form_check").submit();
        })
        $("#check").click(function(){
              $("#page-go").val(1);
              document.getElementById("form_check").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            $("select").val(0);
            $("#page-go").val(1);
             document.getElementById("form_check").submit();
        })
                $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
        })
        </script>
</body>

</html>
